function init_global_finish_grinding

% initialize values for global variables

global NUMBER_OF_EVENTS LENGTH BIG TNOW MAINT_COST REPAIR_COST SALES_REVENUE EXP_RATE EMP_DIST
global SHAPE1 SCALE1 SHAPE2 SCALE2 A3 B3 B U L MU STATES_MAX NET_ITERMAX ISTAR THRESHOLD
% types of events 1=termination; 2=produce;3=repair; 4=maintenance 
ISTAR=1;

global ENCODER_UL_PC % upper limit for encoder for likely value of production count in neuron



NET_ITERMAX=2;
NUMBER_OF_EVENTS = 4; 

EMP_DIST=[0.00,0.0117,0.0247,0.0416,0.0650,0.0936,0.1274,0.1664,0.2106,0.2590];

LENGTH=150000;

BIG=10000001; % has to be bigger than LENGTH 

STATES_MAX=20;

TNOW=0;



% Following are parameters of the uniform distribution for maintenance time

U=1;

L=2;





% Following parameters from unif distribution for repair time

A3=2;

B3=4;





MAINT_COST=10; % cost of one maintenance in dollars

REPAIR_COST=1000; % cost of one repair in dollars

SALES_REVENUE=800;

EXP_RATE=0.5;

